package com.bjpowernode.constants;

/**
 * @author 麦翔盛
 * @ClassName: Constant
 * @Package: com.bjpowernode.constants
 * @description: 常量类
 * @date 2022/5/14 20:06
 */
public class Constant {
    /**
     * 投资产品类型
     */
    /**
     * 新手宝
     */
    public static final int PRODUCT_TYPE_X = 0;
    /**
     * 优选产品
     */
    public static final int PRODUCT_TYPE_Y = 1;
    /**
     * 散户产品
     */
    public static final int PRODUCT_TYPE_S = 2;

    /**
     * 默认处于第几页
     */
    public static final int DEFAULT_PAGE_NO = 1;

    /**
     * 默认每页限制显示数据数量
     */
    public static final int DEFAULT_PAGE_SIZE = 9;

    /**
     * 手机长度(中国)
     */
    public static final int PHONE_LENGTH = 11;

    /**
     * 短信验证码发送成功
     */
    public static final String SENDER_SUCCESS = "OK";

    /**
     * 验证码发送成功 响应码
     */
    public static final int SENDER_CODE_SUCCESS = 200;

    /**
     * 注册验证码长度
     */
    public static final int REG_CODE_LENGTH = 4;

    /**
     * 登录验证码长度
     */
    public static final int LOG_CODE_LENGTH = 6;

    /**
     * 加密后的密码长度
     */
    public static final int PASSWORD_LENGTH = 32;

    /**
     * 身份验证一致结果
     */
    public static final int ID_CONSISTENT_RESULT = 0;
    /**
     * options请求
     */
    public static final String METHOD_OPTIONS = "OPTIONS";
    /**
     * 充值状态 0 充值中
     */
    public static final Integer RECHARGE_PROCESSING_0 = 0;
    /**
     * 充值状态 1 充值成功
     */
    public static final Integer RECHARGE_SUCCESS_1 = 1;
    /**
     * 充值状态 2 充值
     */
    public static final Integer RECHARGE_FAIL_2 = 2;

    /**
     * 请求头中的 Authorization 中的前缀 Bearer
     */
    public static String HEADER_BEARER = "Bearer";

    /**
     * token在Authorization 中的起始位置
     */
    public static final int TOKEN_START_INDEX = 7;

    /**
     * 最小投资金额
     */
    public static final int MIN_BID_MONEY = 100;

    /**
     * 0 未满标
     */
    public static final int PRODUCT_STATUS_0 = 0;
    /**
     * 1已满标
     */
    public static final int PRODUCT_STATUS_1 = 1;
    /**
     * 2满标已生成收益计划
     */
    public static final int PRODUCT_STATUS_2 = 2;

    /**
     * 0 投标状态
     */
    public static final int BID_STATUS_0 = 0;
    /**
     * 1 投标状态
     */
    public static final int BID_STATUS_1 = 1;
    /**
     * 2 投标状态 已经产生收益
     */
    public static final int BID_STATUS_2 = 2;

    /**
     * 收益状态0 未返还
     */
    public static final int INCOME_STATUS_0 = 0;

    /**
     * 收益状态1 已返回
     */
    public static final int INCOME_STATUS_1 = 1;

    /**
     * 支付结果
     */
    public static final String PAY_RESULT_SUCCESS = "10";

}